import type { Params } from "@/types/common"
import { $baseApi } from "@/utils/http-instance"
import useCommonStore from "@/store/common"
const commonStore = useCommonStore()

// 推广员基础配置
export const $tgySetting = () => $baseApi.get(`tgy-settings/get-detail`)
// 推广员详情
export const $getTgyInfo = () => $baseApi.get(`tgies/get-of-own`)
// 申请推广员
export const $tgyApply = (params: Params) => $baseApi.post(`tgy-applications/add`, params)
// 查询推广员申请状态
export const $getTgyApplication = () => $baseApi.post(`tgy-applications/get-tgy-of-own`)
// 个人推广统计
export const $tgyOwnIncome = () => $baseApi.post(`tgy-stats/income-of-own`)
